package F01;

import java.io.File;
import java.io.*;

public class Test3Delete {

    public static void main(String[] args) throws IOException {
        File file=new File("java");
        System.out.println(file.createNewFile());

        File file2=new File("java");
        System.out.println(file2.delete());

        File f2=new File("myFile\\itcast");
        //System.out.println(f2.mkdirs());
        System.out.println(f2.delete());

        File f3=new File("myFile\\itcast");
        System.out.println(f3.mkdirs());

        File f4=new File("myFile\\itcast\\java.txt");
        System.out.println(f4.createNewFile());


    }
}
